package com.winqai.security;

import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp;

//@Component("connectionSignUp")
public class DemoConnectionsignUp implements ConnectionSignUp {
    @Override
    public String execute(Connection<?> connection) {
        //根据社交用户信息默认创建用户并返回唯一标识
        return  connection.getDisplayName();
    }
}
